<?php

namespace App\ModelFilters;

class PermissionFilter extends BaseModelFilter
{
    /**
     * Related Models that have ModelFilters as well as the method on the ModelFilter
     * As [relatedModel => [input_key1, input_key2]].
     *
     * @var array
     */
    public $relations = [];

    /**
     * 显示名称
     * @param $value
     * @return mixed
     */
    public function name($value)
    {
        return $this->whereLike('name', $value);
    }

    /**
     * 模块查询
     * @param $value
     * @return mixed
     */
    public function module($value)
    {
        return $this->whereLike('module', $value);
    }

}
